package com.agent.demo;

/**
 * -javaagent:D:/IT_ALAN/gitee/javaProject/agentDemo/agentJar/target/my-agent.jar
 * @author: Alan
 * @date: 2021/4/25 22:50
 */
public class TimeTestMain2 {

    public static void main(String[] args) {
        sayHello();
        sayHello2("hello world222222222");
        //线程一
        new Thread(() -> new TimeTestMain2().http_lt1()).start();

        //线程二
        new Thread(() -> {
            new TimeTestMain2().http_lt1();
        }).start();

    }

    public static void sayHello() {
        try {
            Thread.sleep(2000);
            System.out.println("hello world!!");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void sayHello2(String hello) {
        try {
            Thread.sleep(1000);
            System.out.println(hello);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void http_lt1() {
        System.out.println("测试结果：hi1");
        http_lt2();
    }

    public void http_lt2() {
        System.out.println("测试结果：hi2");
        http_lt3();
    }

    public void http_lt3() {
        System.out.println("测试结果：hi3");
    }


}
